<?php
	//$tribe_id
		$pho_db='phome_jat_pic';
		$_id=$_REQUEST['sid'];
		$D=DbTouch($pho_db,array('id'=>$_id));
?>
<style>
	.ipt_box{width:100%;}
	.big-box{height:120px;}
	.current_subject{color:#eee;background:#;}
</style>
<ol id="dh">
	<li><a href="<?=$public_r[newsurl]?>tribe/detail/?id=<?=$tribe_id?>">部落首页</a></li>
	<li><a href="<?=$public_r[newsurl]?>tribe/detail/?id=<?=$tribe_id?>&m=subject">部落讨论</a></li>
	<li><a href="<?=$public_r[newsurl]?>tribe/detail/?id=<?=$tribe_id?>&m=act">部落活动</a></li>
	<li><a href="<?=$public_r[newsurl]?>tribe/detail/?id=<?=$tribe_id?>&m=pho" class="change">部落相册</a></li>
</ol>
 <span class="clear"></span> 
<div id="photo" style='height:auto;'>
		<h3>
			<span><a href="./?id=<?=$tribe_id?>&m=pho">查看全部</a></span>
			<span><a href="./?id=<?=$tribe_id?>&m=u">上传照片</a></span>
			<span><a href="./?id=<?=$tribe_id?>&m=abm">创建新相册</a></span>
			部落全部照片
		</h3>
		<div  style='text-align:left;padding:10px;'><?=$D['title']?></div>
		<div style='text-align:center;padding:10px 0px;'><img src="<?=$public_r['newsurl'].$D[url]?>" id='img_show' onload='setImgSize();' /></div>
	  <span class="clear"></span>
	  <div class='page'>
		<?=$page_list?>
	  </div>
	  <script>
	  $(document).ready(function(){
		$('#img_show').load(function(){
			var w=$(this).attr('width');		
			if(parseInt(w)>520){
				$(this).attr('width',520);
			}
		});
	  })	 
	  </script>
</div>
<!-- photo结束 -->